package dao;

import entity.Student;

import java.util.List;

public interface StudentDao {
    /**
     * 注册
     * @param student
     * @return
     */
    Boolean register(Student student);

    Student selectByName(String name);

    Student selectByEmail(String email);

    Integer selectLastId();

    Student selectWithNameAndPassword(String name, String password);

    List<Student> selectAllStudents();

    List<Student> selectStudentLikeName(String name);
}
